using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace ShopForWeb.Models;
/// <summary>
/// 商品
/// </summary>
[Table("T_Commodity")]
public class Commodity
{
  [Key]
  [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
  public int CommodityID { get; set; }
  public string Cm_name { get; set; } = "";
  public string firm { get; set; } = "";
  public decimal Price { get; set; }
  public string Photo { get; set; } = "";
  public string introduce { get; set; } = "";
  public virtual ICollection<ShopCart> ShopCarts { get; set; } = new List<ShopCart>();
  public virtual ICollection<OrderDetails> OwnOrderDetail { get; set; } = new List<OrderDetails>();

}
